package com.zt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName teachers
 */
@TableName(value ="teachers")
@Data
public class Teachers implements Serializable {


//    private Integer userId;
//
//    private String name;
//
//    private String subjectIds;
//
//    private String introduction;
//
//    private Integer teachingAge;
//
//    private Integer certificationStatus;
//
//    private Integer status;
//
//    private BigDecimal latitude;
//
//    private BigDecimal longitude;
//
//    private String availableTime;
//
//    private String address;

    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 关联用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 教师姓名
     */
    private String name;

    /**
     * 擅长科目IDs（逗号分隔）
     */
    @TableField("subject_ids")
    private String subjectIds;

    /**
     * 教师介绍
     */
    private String introduction;

    /**
     * 教龄
     */
    private Integer teachingAge;

    /**
     * 认证状态：1-待认证，2-已认证，3-未通过
     */
    @TableField("certification_status")
    private Integer certificationStatus;

    /**
     * 状态：1-正常，0-禁用  todo
     */
    private Integer status;

    /**
     * 纬度坐标
     */
    private BigDecimal latitude;

    /**
     * 经度坐标 
     */
    private BigDecimal longitude;

    /**
     * 教师可用时间
     */
    @TableField("available_time")
    private String availableTime;

    /**
     * 教师地址
     */
    private String address;

    /**
     * 教师手机号
     */
    @TableField(exist = false)
    private String phone;

    /**
     * 教师邮箱
     */
    @TableField(exist = false)
    private String email;

    /**
     * 教师职称
     */
    @TableField(exist = false)
    private String title;

    /**
     * 创建时间
     */
    @TableField("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private TeacherCertification teacherCertification;

    private static final long serialVersionUID = 1L;

}
